package org.xx.armory.swing.builders;

import org.xx.armory.objectparser.ParsedObjectBuilder;

public class OptionModelBuilder
        extends ParsedObjectBuilder<OptionModel> {
    private String text;
    private String value;

    public OptionModelBuilder() {
    }

    public OptionModelBuilder setText(
            String text
    ) {
        this.text = text;
        return this;
    }

    public OptionModelBuilder setValue(
            String value
    ) {
        this.value = value;
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public OptionModel build() {
        return new OptionModel(getLineInfo(), this.text, this.value);
    }
}
